package com.schedule.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.schedule.mapper.ScheduleMapper;
import com.schedule.model.Bus;
import com.schedule.model.Place;
import com.schedule.model.Schedule;

@Repository
public class ScheduleDao implements ScheduleMapper{
	@Autowired
	ScheduleMapper scheduleMapper;

	@Override
	public List<Schedule> findAll() {
		return scheduleMapper.findAll();
	}

	@Override
	public void addSchedule(Schedule schedule) {
		scheduleMapper.addSchedule(schedule);
	}

	@Override
	public void updateSchedule(Schedule schedule) {
		scheduleMapper.updateSchedule(schedule);
	}

	@Override
	public void deleteSchedule(String busId) {
		scheduleMapper.deleteSchedule(busId);
	}

	@Override
	public Schedule findById(String busId) {
		return scheduleMapper.findById(busId);
	}

	@Override
	public List<String> AllPlace() {
		return scheduleMapper.AllPlace();
	}

	@Override
	public List<String> AllBus() {
		return scheduleMapper.AllBus();
	}
	
}
